package com.dgut.courses_selecting_sys.vo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class CourseVo {
    /**
     * @RequestParam("courseName") String courseName,
     * @RequestParam("deptId")int deptId,
     * @RequestParam("startData")Date startDate,
     * @RequestParam("endData")Date endDate,
     * @RequestParam("status")int status,
     * @RequestParam("pageNumber")int pageNumber,
     * @RequestParam("pageSize")int pageSize
     */

    private String courseName;
    private Integer deptId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    private Integer status;
    private Integer pageNumber;
    private Integer pageSize;

}
